import account from './Account.vue'
import goodslist from './goodslist.vue'
import login from './sub/login.vue'
import reg from './sub/reg.vue'
// 导入
import VueRouter from 'vue-router'



// 创建路由对象
var router = new VueRouter({
    routes: [{
            path: '/account',
            component: account,
            children: [
                { path: "login", component: login },
                { path: "reg", component: reg },
            ]
        },
        { path: '/goodslist', component: goodslist }
    ]
})
export default router